package com.entity;


import jakarta.validation.constraints.NotBlank;

/**
 * rbac用户映射类
 *
 * @author yyz
 * @date 2022/03/29
 */
public class RbacManager {
    private int id;
    @NotBlank(message = "用户名不能为空")
    private String account;
    @NotBlank(message = "密码不能为空")
    private String password;
    private char status;
    private int role_id;
    private String roles;

    public RbacManager() {
    }

    public RbacManager(int id, String account, String password, char status, int role_id, String roles) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.status = status;
        this.role_id = role_id;
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "RbacManager{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", role_id=" + role_id +
                ", roles='" + roles + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public char getStatus() {
        return status;
    }

    public void setStatus(char status) {
        this.status = status;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }
}

